package com.neiquan.backstage.resourec_manage;

import java.util.List;

import com.neiquan.backstage.pub.bsc.dao.po.Lease;

public interface ResourecLeaseService {
	/**
	 * 	添加
	 * @param entity
	 */
	 void add(Lease entity);
	/**
	 * 	 通过Id查询
	 * @param id
	 * @return
	 */
	 Lease queryById(int id);
	/**
	 * 	 修改数据
	 * @param entity
	 */
	 void updata(Lease entity);
	/**
	 * 	 查询所有
	 * @return
	 */
	 @Deprecated
	 List<Lease> queryAll();
	 /**
	  * 查询user下的出租申请
	  * @param userId
	  * @param memberId
	  * @return
	  */
	List<Lease> queryByUserId(Integer userId,Integer memberId);
	 
	List<Lease> queryByEntrepreneurId(int entrepreneurId);
	
	Lease queryByEntrepreneurId(int entrepreneurId, int newlyStuats);
	/**
	 * 通过公司Id查询
	 * @param entrepreneurId
	 * @param newlyStuats
	 * @param status
	 * @return
	 */
	List<Lease> queryByEntrepreneurId(int entrepreneurId, int newlyStuats, int status);
	
	List<Lease> queryByMeberId(int memberId, int newlyStuats, int status);
	/**
	 * 通过uniqueId查询lease
	 * @param memberId
	 * @param uniqueId
	 * @return
	 */
	Lease queryByUniqueId(int memberId, String uniqueId);
	
	
	
}
